#pragma once
#include <iostream>
#include <math.h>

using namespace std;


class summa
{
private:
	int k;
	int c;
	float sum;
public:

	summa(void)
	{
		k = 0;
		c = 0;
		sum = 0;
	}

	summa (int k, int c, float sum)
	{
		this->c = c;
		this->k = k;
		this->sum = sum;
	}

	

	int Rsum(int c)
	{
		if ( c == 0)
		{
			cout << sum;
			return 1;
		}

		else 
		{
			sum += 1/sqrt(c);
			c--;
			
			return (Rsum(c));
		}
	}

	~summa(void)
	{
	}
};

